﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ZlsDyhQD.aspx.cs" Inherits="Web.Pages.YongShui._7.QiTaGL.ZlsDyhQD" Theme="Default" ValidateRequest="false" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script type="text/javascript">
        function Uploader_OnFileUploadComplete(e) {
            var arr = e.callbackData.split('|');
            var type = arr[0];
            var state = arr[1];
            var specialIdentity = arr[2];
            var msg = arr[3].split('-');
            if (msg[0] == 'True') {
                alert(msg[1]);
            }
            if (state == 'True') {
                gvlist1.PerformCallback();
            }
            else {

            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            供水分公司传输站点清单
        </div>
        <div>
            <asp:UpdatePanel ID="updatePanel1" runat="server">
                <ContentTemplate>
                    <div>
                        <table style="height: 43px; width: 100%">
                            <tr>
                                <td>
                                    <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="水量年月：" Width="66px"></dx:ASPxLabel>
                                </td>
                                <td>
                                    <dx:ASPxTextBox ID="txtYM" runat="server" Width="50px" Text="201807"></dx:ASPxTextBox>
                                </td>
                                <td>
                                    <dx:ASPxButton ID="txtQuery" runat="server" Text="查询" OnClick="txtQuery_Click"></dx:ASPxButton>
                                </td>
                                <td style="width: 20px">&nbsp;</td>
                                <td style="width: 300px">
                                    <dx:ASPxButton runat="server" ID="btnExportExcel" Text="导出Excel">
                                        <ClientSideEvents  Click="function(s,e){btnExport.OnClick();}"/>
                                    </dx:ASPxButton>
                                </td>
                                <td style="width: 80%"></td>
                                <td>
                                    <dx:ASPxTextBox ID="txtMid" runat="server" Width="170px" Visible="False"></dx:ASPxTextBox>
                                </td>
                                <td>
                                    <dx:ASPxButton ID="btnAddMid" runat="server" Text="添加水表" Visible="False"></dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div>
                        <dx:ASPxGridView ID="grd" ClientInstanceName="grd" runat="server" SettingsBehavior-AllowSort="false" AutoGenerateColumns="False" KeyFieldName="ID" Theme="Aqua1" Width="100%">
                            <Columns>
                                <dx:GridViewDataTextColumn FieldName="ID" Caption="Id" Width="30px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_SHUIBIAOHM" Caption="StationName" Width="150px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_SHUIBIAOBH" Caption="水表编号" Width="100px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="I_BENYUECM" Caption="读数" Width="80px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="D_CHAOBIAORQ_SY" Caption="开始时间" Width="80px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="D_CHAOBIAORQ" Caption="结束时间" Width="80px">
                                </dx:GridViewDataTextColumn>
<%--                                <dx:GridViewDataTextColumn FieldName="S_CITY" Caption="市" Width="60px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_CANTON" Caption="区" Width="60px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_STREET" Caption="街道" Width="60px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_SHUIBIAODZ" Caption="门牌号" Width="150px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="I_KOUJING" Caption="用水等级" Width="80px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_YUANSHUIBBH" Caption="市政表编号" Width="100px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_LIANXIR" Caption="联系人" Width="80px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_LIANXIDH" Caption="联系电话" Width="80px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_YOUBIAN" Caption="邮箱" Width="80px">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_SHESHUIDX" Caption="商家类型" Width="150px">
                                </dx:GridViewDataTextColumn>                                --%>
                            </Columns>
                            <Settings VerticalScrollableHeight="460" VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />
                        </dx:ASPxGridView>
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
        <div>
            <dx:ASPxLoadingPanel ID="LoadingPanel" runat="server" ClientInstanceName="cnLoadingPanel" Text="正在导入回盘文件，请稍后...">
            </dx:ASPxLoadingPanel>
            <div style="display:none;">
                <table>
                    <tr>
                        <dx:ASPxGridViewExporter ID="grdOutExcel" runat="server">
                        </dx:ASPxGridViewExporter>
                        <dx:ASPxButton ID="btnExport" runat="server" ClientInstanceName="btnExport" Text="导出EXCEL" OnClick="btnOutExcel_Click" UseSubmitBehavior="false">
                        </dx:ASPxButton>
                    </tr>
                </table>
            </div>
        </div>
        <%-- <div style="display: none;">
            <dx:ASPxButton ID="btnDaoRuWJFact" runat="server" Text="button" OnClick="btnDaoRuWJFact_Click" >
                        <ClientSideEvents Click="function(s, e) { 
                            cnLoadingPanel.Show();
                            }" />
            </dx:ASPxButton>
            <asp:HiddenField ID="confirmValue" runat="server" />
        </div>--%>
    </form>
</body>
</html>
